<?php

use yii\db\Migration;

/**
 * Handles the creation of table `package_log`.
 */
class m171026_084914_create_package_log_table extends Migration
{
    /**
     * @inheritdoc
     * 资产包操作记录表
     */
    public function up()
    {
        $this->createTable('package_log', [
            'id' => $this->bigPrimaryKey(),
            'package_id' => $this->bigInteger()->notNull(),
            'created_at' => $this->timestamp()->comment('操作时间'),
            'user_id' => $this->integer()->comment('操作人'),
            'log' => $this->text()->comment('操作内容'),

        ]);
    }

    /**
     * @inheritdoc
     */
    public function down()
    {
        $this->dropTable('package_log');
    }
}
